package com.outfood.service.impl;

import com.outfood.domain.Order;
import com.outfood.domain.User;
import com.outfood.mapper.OrderMpper;
import com.outfood.service.IOrderService;
import com.outfood.service.IUserService;
import com.rys.common.enums.SearchTypeEnum;
import com.rys.common.utils.Search;
import com.rys.framework.service.base.BaseServcie;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author huisonglin
 * @Description
 * @PackageName outfood-platform
 * @Package com.outfood.service.impl
 * @Date 2024-03-25 17:04
 * @Version 1.0
 */
@Service
public class OrderServiceImpl extends BaseServcie<Order> implements IOrderService {


    public List<Order> getOrderList(Long storeId){
        List<Order> list = this.getList(new Search().add("storeId", SearchTypeEnum.EqualTo,storeId),"id desc");
        return list;
    }
}
